export function getW(key) {
	if (key) {
		const ks = key.split('.');
		key = ks[ks.length - 1];
	}
	if (Object.hasOwn(config, key)) {
		return String(config[key]);
	}
	return undefined;
}

const config = {
	planDate: 90,
	shipBerthName: 60,
	shipName: 80,
	voyage: 80,
	cargoTypeName: 60,
	impExpName: 60,
	workTypeName: 60,
	packageBulkName: 60,
	planTotal: 80,
	planTotalStr: 80,
	residualTon: 80,
	residualTonStr: 80,
	planNightLineTon: 60,
	planNightLineCount: 60,
	planDayLineTon: 60,
	planDayLineCount: 60,
	updateTime: 140,
	statTime: 140,
	lineNo: 100,
	status: 80,
	plannedQuantity: 60,
	plannedQuantityStr: 60,
	cabinAndHatch: 60,
	loadTypeName: 60,
	WORKER: 60,
	portalCraneCount: 60,
	shipMachineryCount: 60,
	accessoryMachineryCount: 80,
	FORKLIFT: 60,
	CRANE: 60,
	TRACTOR: 60,
	SLUSHER: 60,
	LOADER: 60,
	EXCAVATOR: 60,
	IN_CABIN_MACHINE: 80,
	LARGE_HANDCART: 60,
	remark: 60,
	statTypeName: 60,
	statCodeStr: 80,
	berthName: 60,
	planBerthName: 60,
	shipLength: 70,
	shipWidth: 70,
	sdw: 80,
	impVoyage: 80,
	expVoyage: 80,
	draft: 60,
	tugNum: 60,
	pilotFlagName: 60,
	begCable: 80,
	endCable: 80,
	cableDistance: 60,
	description: 60,
	alterTypeName: 60,
	askFlagName: 60,
	realTime: 170,
	planBerth: 100,
	beginBerth: 100,
	reason: 80,
	modifiedTime: 170,
	modifiedUser: 80,
	planner: 60,
	tradeTypeName: 60,
	isFinish: 60,
	lastTon: 80,
	lastTonStr: 80,
	begTime: 140,
	endTime: 140,
};


